{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "_macros.html" as macros %}
{% import "_my_wtf_macros.html" as my_wtf_macros %}
{% import "user/partial/search_user_form.html" as search_user_form_macro %}
{% import "user/partial/user_table.html" as user_table_macro %}

{% block title %}万屏时代OPC--报价详情{% endblock %}

{% block panel_heading %}
  万屏时代OPC--报价详情
{% endblock %}

{% block panel_body %}g
    <p>{{ template.product_type_name }}--{{ template.brand }}--{{ template.title_display }}</p>
    <table id="cancel-attention-user-info-table" class="table table-bordered table-hover table-condensed table-striped">
        <thead>
            <tr>
                <th>工程商</th>
                <th>最低价</th>
                <th>最高价</th>
                <th>可见范围</th>
                <th>规格报价</th>
            </tr>
        </thead>
        <tbody>
            {% for i in desc_list %}
            <tr>
                <td>
                    {% if i.supplier_id %}
                        <a
                                href="{{ url_for('op_bp.user_info', user_id=i.supplier_id) }}"
                                name="user-info"
                                target="_blank">
                            {{ i.user_name }}
                        </a>
                    {% endif %}
                </td>
                <td>{{ i.min_price or i.is_consult and '议价' }} </td>
                <td>{{ i.max_price or i.min_price or i.is_consult and '议价' }}</td>
                <td>{{ i.visible_type_display or '' }}</td>
                <td>{{ i.spec_prices | safe or '无' }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>

{% endblock %}